package com.huiyou.adminapi.controller;

import lombok.extern.slf4j.Slf4j;

@Slf4j
abstract class AbstractController {

    <T> void idCheckFound(T resource) {
        if (resource == null) {
            log.error("Id does not exist");
            throw new NullPointerException();
        }
    }
}
